﻿using Cms.Core.Data.Mapping;
using Cms.Core.Data.Model;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace EntityFrameworkCore.Configurations
{
    public class SysUserRoleMapConfigurations : EntityMappingConfiguration<SysUserRoleMap>
    {
    

        public override void Map(EntityTypeBuilder<SysUserRoleMap> builder)
        {

            base.MapCommon(builder);
            builder.Property(o => o.RoleId);
            builder.Property(o => o.UserId);
            builder.ToTable("SysUserRoleMapping");
        }

     
    }
}
